package com.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * null
 * @TableName clzz
 */
@TableName(value ="clzz")
@Data
public class Clzz implements Serializable {
    /**
     * 班级ID
     */
    @TableId
    private Integer clzzId;

    /**
     * 班级名字
     */
    private String clzzName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Clzz other = (Clzz) that;
        return (this.getClzzId() == null ? other.getClzzId() == null : this.getClzzId().equals(other.getClzzId()))
            && (this.getClzzName() == null ? other.getClzzName() == null : this.getClzzName().equals(other.getClzzName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClzzId() == null) ? 0 : getClzzId().hashCode());
        result = prime * result + ((getClzzName() == null) ? 0 : getClzzName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", clzzId=").append(clzzId);
        sb.append(", clzzName=").append(clzzName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}